From: Eli Zaretskii Date: Wed, 12 Mar 2025 12:53:03 +0000 (+0200) Subject: ; * lisp/files.el (executable-find): Doc fix. X-Git-Tag: archive/raspbian/1%30.2+1-2+rpi1^2~2^2~24^2~209 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=a6abb88fdcc71f2959c95ee5cda57c28719c5a0a;p=emacs.git ; * lisp/files.el (executable-find): Doc fix. --- diff --git a/lisp/files.el b/lisp/files.el index 79dbe5ad53e..2707a4e8bbe 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -1286,9 +1286,9 @@ the value of the variable `exec-path'." (defun executable-find (command &optional remote) "Search for COMMAND in `exec-path' and return the absolute file name. -Return nil if COMMAND is not found anywhere in `exec-path'. If -REMOTE is non-nil, search on the remote host indicated by -`default-directory' instead." +Return nil if COMMAND is not found anywhere in `exec-path'. +If REMOTE is non-nil, search on a remote host if `default-directory' is +remote, otherwise search locally." (if (and remote (file-remote-p default-directory)) (let ((res (locate-file command